import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { MovieController } from './controllers/movie.controller'
import { VideoTagController } from './controllers/video-tag.controller'
import { MovieEntity } from './entities/movie.entity'
import { VideoTagEntity } from './entities/video-tag.entity'
import { MovieService } from './services/movie.service'
import { VideoTagService } from './services/video-tag.service'

@Module({
  imports: [
    TypeOrmModule.forFeature([MovieEntity, VideoTagEntity]),
  ],
  controllers: [MovieController, VideoTagController],
  providers: [MovieService, VideoTagService],
  exports: [MovieService, VideoTagService],
})
export class MovieModule {}
